package com.api.client.json;

import java.lang.reflect.Type;

import com.google.gson.reflect.TypeToken;
import com.zyncro.user.ZyncroDepartment;
import com.zyncro.user.ZyncroGroup;

public enum ApiResultType{
		
	PAGED_GROUPS(new TypeToken<ApiPagedResult<ZyncroGroup>>() {}.getType()),
	PAGED_DEPARTMENTS(new TypeToken<ApiPagedResult<ZyncroDepartment>>() {}.getType()),
	OBJECT_URN(new TypeToken<ApiObjectResult<String>>() {}.getType());
	;
		
	private ApiResultType(Type gsonType){
		this.type = gsonType;
	}
		
	private Type type;
		
	public Type getType(){
		return type;
	}
}